package cn.tedu.jdbc;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.Collection;

public class HomeWork4 {
    public static void main(String[] args)  {
        Connection c=null;
        PreparedStatement p=null;
        ResultSet r=null;
        try {
            c=JDBCUtils2.get();
            String sql="delete from user where id=4";
            p=c.prepareStatement(sql);
            p.executeUpdate();
        } catch (Exception e) {
            e.printStackTrace();
        }finally {
            JDBCUtils2.close(null,p,c);
        }


    }
}
